package com.springboot.astra.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.springboot.astra.bean.Order;

import java.util.List;

public interface OrderService {
    Order getOneByOrderId(Integer id);
    List<Order> getAllByUserId(Integer id);
    void insertOrder(Order order);
    void updateOnrByOrderId(Order order);
    void deleteOneByOrderId(Order order);
    IPage<Order> getOrderPageVo(Page<Order> page,String query);
    IPage<Order> getMyOrder(Page<Order> page,Integer orderId);
}
